package org.wltea.analyzer.term;

public class Term {
	
	private int startOffset;
	private int endOffset;
	private String word;
	private String type;
	public int getStartOffset() {
		return startOffset;
	}
	public void setStartOffset(int startOffset) {
		this.startOffset = startOffset;
	}
	public int getEndOffset() {
		return endOffset;
	}
	public void setEndOffset(int endOffset) {
		this.endOffset = endOffset;
	}
	public String getWord() {
		return word;
	}
	public void setWord(String word) {
		this.word = word;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Term(int startOffset, int endOffset, String word, String type) {
		super();
		this.startOffset = startOffset;
		this.endOffset = endOffset;
		this.word = word;
		this.type = type;
	}
	
	public Term() {
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("startOffset="+startOffset).append(" ")
			.append("endOffset="+endOffset).append(" ")
			.append("word="+word).append(" ")
			.append("type="+type);
		return sb.toString();
	}
	
}
